package com.example.demo.modules.sys.dto.dict;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class DictDTO {

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "父id")
    private String parentId;

    @ApiModelProperty(value = "字典类型")
    private String type;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "层级深度")
    private Integer level;

    @ApiModelProperty(value = "0启用1禁用")
    private Boolean state;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "子项总数")
    private Integer childrenNum;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "0正常1删除")
    @TableLogic
    private Boolean deleted;

}
